/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package logic;

import javax.ejb.Local;
import model.GroupDefinition;
import model.User;

/**
 *
 * @author Alexandre
 */
@Local
public interface UserActionsLocal {

     boolean addNewUser(String name, String email, String password);
     User loginUser(String username, String password);
     boolean addReceipt(User user, String category, String concept, float quantity, int groupId);
    public GroupDefinition joinGroup(User user, int groupId);
    public GroupDefinition getGroupPermission(User user, int groupId);
    public boolean createNewGroup(User user, String namegroup);
    public boolean addPayment(User user, String target, float quantity, int groupId);
    
}
